﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Infragistics.Samples.WPF.xamFeatureBrowser.resources
{
    /// <summary>
    /// Interaction logic for NotificationControl.xaml
    /// </summary>
    public partial class NotificationControl : UserControl
    {
        public NotificationControl()
        {
            InitializeComponent();
        }
        private string header = string.Empty;
        public string Header
        {
            get
            {
                return this.xamWindow.Header as string;
            }
            set
            {
                this.xamWindow.Header = value;
            }
        }

        public string Message
        {
            get
            {
                return this.MessageDisplay.Text;
            }
            set
            {
                this.MessageDisplay.Text = value;
            }
        }

        public void Show()
        {
            this.xamWindow.Visibility = Visibility.Visible;
            this.Visibility = Visibility.Visible;
        }

        public void Hide()
        {
            this.xamWindow.Visibility = Visibility.Collapsed;
            this.Visibility = Visibility.Collapsed;
        }

    }
}
